package cn.foolishbird.crow.spring.security.annotation;

import org.springframework.security.core.annotation.CurrentSecurityContext;

import java.lang.annotation.*;

/**
 * <p>
 * spring-security controller入参获取用户信息
 * </p>
 *
 * @author foolishbird
 * @date 2022/01/07
 */
@Documented
@Target(value = ElementType.PARAMETER)
@Retention(value = RetentionPolicy.RUNTIME)
@CurrentSecurityContext(expression = "authentication.details", errorOnInvalidType = true)
public @interface CurUserDetails {

}
